home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 938 b | 26 lines | [TEXT/GEOL] |
- Item 2159873 8-July-90 10:52PDT
-
- From: ARGII Argii Design Group, M Demeyer,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: C & Pascal String Conversion
-
- Hi,
-
- To print a C string in the MacApp Debugger window, we first converted
- it to a Pascal string by using 'c2pstr'. As it turned out, Keith
- Rollin also suggested the same in his response to "printing C strings
- in Field" recently. However, we just discovered (while doing something
- else) that both conversion routines "c2pstr" and "p2cstr" shift the bytes
- in BOTH source and destination strings. It does not seem reasonalbe that
- the SOURCE string should be shifted also. Are we right or should we be
- cautious? If we are right, then are these conversion routines fixed in
- MPW 3.1 and Pascal 3.1? (We are using MPW 3.0, Pascal 3.0 & MacApp 2.0ß9.)
-
- Thanks,
-
- Anh Nguyen
- Argii Design Group
-
-